<h1>Editing article</h1>

<%= error_messages_for :article %>

<% form_for(:article, :url => article_path(@article), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', article_path(@article) %> |
<%= link_to 'Back', articles_path %>